package com.erp.app.report.genericInquiry.inquiryDisplay.ejb;

import java.math.BigDecimal;

import com.erp.framework.model.pk.SimpleBasePk;

public class InquiryDisplayPK implements SimpleBasePk
{
	public String companyCode;
	public String inquiryType;
	public String rptTime;
	public BigDecimal lineNo;

	public String getCompanyCode() { return companyCode; }
	public String getInquiryType() { return inquiryType; }
	public String getRptTime() { return rptTime; }
	public BigDecimal getLineNo() { return lineNo; }

	public InquiryDisplayPK(String companyCode, String inquiryType, String rptTime, BigDecimal lineNo)
	{
		this.companyCode = companyCode;
		this.inquiryType = inquiryType;
		this.rptTime = rptTime;
		this.lineNo = lineNo;
	}

	public int hashCode() {
		return (this.companyCode+this.inquiryType+this.rptTime+this.lineNo).hashCode();
	}

	public boolean equals(Object obj) {
		if (obj instanceof InquiryDisplayPK) {
			InquiryDisplayPK pk2 = (InquiryDisplayPK) obj;
			return (this.companyCode != null && this.inquiryType != null && this.rptTime != null && this.lineNo != null &&
			        this.companyCode.equals(pk2.companyCode)&& this.inquiryType.equals(pk2.inquiryType)&& this.rptTime.equals(pk2.rptTime)&& this.lineNo.equals(pk2.lineNo));
		}
		return false;
	}

	public String toString() {
		return "{companyCode = "+this.companyCode+", inquiryType = "+this.inquiryType+", rptTime = "+this.rptTime+", lineNo = "+this.lineNo+"}";
	}

}
